package com.example.demo.jsonplaceholder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "jsonplaceholder",url ="https://jsonplaceholder.tvpicode.com/")
public class JSONPlaceHolderClient {
    @GetMapping("/posts")
    List<Post> getPosts() {
        return null;
    }

    @GetMapping("posts/{postId}")
    Post getPost(@PathVariable("postId") Integer postId) {
        return null;
    }
}
